﻿<%@ Page Language="C#" MasterPageFile="~/DefaultPage.master" AutoEventWireup="true" CodeFile="productdetail.aspx.cs" Inherits="product_productdetail" Title="Untitled Page" %>
<%@ Register src="../usercontrol/products/Productdetail.ascx" tagname="Productdetail" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link type="text/css" rel="stylesheet" href="http://localhost:2011/didong/style/jquery-ui-1.7.3.custom.css" />
<script type="text/javascript" src="http://localhost:2011/didong/js/script.js"></script>
<script type="text/javascript" src="http://localhost:2011/didong/js/jScript.js"></script>
<script type="text/javascript">
        $(document).ready(function(){
            // zoom image
            $("a.fancy").fancybox({});
//            $("#ctl00_ContentPlaceMain_btnsubmit").click(function(){
//		            checkvalue();     
//		    });
        });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceSlide" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceMain" Runat="Server">
   


    <div class="rowheader">
        <div id="tag">
				<a href="../">Trang chủ</a> » <a href="#"> Sản 
                phẩm</a> » <a href="#">Điện thoại </a>
	</div>
    </div>
	
   
	<div id="item-content">
	<div class="product-description">
						<div class="product-image">
						
                            <asp:HyperLink ID="fancy" runat="server"  CssClass="fancy"> <asp:Image ID="Image1" runat="server" /></asp:HyperLink>
                           
						</div>
						<div  class="product-summary">
							<h1> <asp:Literal ID="Ltname" runat="server"></asp:Literal></h1>
							<ul>
                                <asp:HiddenField ID="Hdid" runat="server" />
								<li>Hãng sản xuất:<asp:Literal ID="Lthang" runat="server"></asp:Literal></li>
								<li><asp:Literal ID="Ltbaohanh" runat="server"></asp:Literal> tháng</li>
								<li>
                                    <asp:Literal ID="Ltorgin" runat="server"></asp:Literal></li>
								<li>Tình trạng: còn hàng</li>
								<li>Phụ kiện đi kèm: Tai nghe, pin, sách hướng dẫn</li>
								<li>Giá bán:<span style="font-size:15px; color:#FF0000; font-weight:bold"> 
                
                                    <asp:Literal ID="Ligiaban" runat="server"></asp:Literal>vnđ</span></li>
							</ul>
								
						</div>
                     <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                     <Triggers>
                        <asp:PostBackTrigger ControlID="btncarts" />
                       
                     </Triggers>
                            <ContentTemplate>--%>
						<div class="button-cart">
                            <asp:Button UseSubmitBehavior="false" ID="btncarts" runat="server" CssClass="btnsubmit" 
                                value="   Mua  "
                                onclick="btncarts_Click" Text="   Mua  " />
						</div>
					<%--	</ContentTemplate>
				     </asp:UpdatePanel>--%>
						<div class="product-detail">
							
		                    <div id="tabs_table">
		                        <ul class="tabs">
			                        <li><a href="#" class="tab active" title="tabchitiet" >Thông tin chi tiết                    <li><a href="#" class="tab" title="tabsanpham" >
                                        sản phẩm cùng loại</a></li>
			                        <li><a href="#" class="tab" title="tabcomment" >ý kiến về sản phẩm</a></li>
		                        </ul>
		                        <div class="tabchitiet tabcontent active">
                                    <asp:Literal ID="Ltthongtinchitiet" runat="server"></asp:Literal>
		                        </div>
		                        <div class="tabsanpham tabcontent">
		                        <div class="sp-cungloai">
	    	                        <asp:ListView ID="Lvitem" runat="server">
                                    <LayoutTemplate>
                                      <div  ID="itemPlaceholder" runat="server"></div>
                                     
                                    </div>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <div class="items">
							                    <div class="borderImage"><a href='<%#"http://localhost:2011/didong/product/"+Eval("Products_Title")%>'><img  src='<%#"http://localhost:2011/didong/"+Eval("Products_Image") %>' alt=""/></a></div>
							                    <ul>
								                    <li class="sp-name"><%#Eval("Products_Name") %></li>
								                    <li class="sp-price">Giá bán: <%#Eval("Products_Price", "{0:0,0}")%>Vnđ</li>
								                    <li class="buy"><a href="#"> <img src="http://localhost:2011/didong/images/design/buttonbuy.png"/></a></li>									
							                    </ul>
					                    </div>        
                                    
                                    </ItemTemplate>
                                </asp:ListView>	
                                <br class="clearfix" clear="all" />
                                </div>
		                    </div>
		                        <div class="tabcomment tabcontent">
		                            <asp:UpdatePanel runat="server" ID="UpComment">
		                                 <ContentTemplate>
		                                    <asp:ListView runat="server" ID="ListComment">
		                                    <LayoutTemplate>
		                                            <div id="itemPlaceHolder" runat="server"></div>
		                                    </LayoutTemplate>
		                                    <ItemTemplate>
		                                        <div class="comment">
		                                             <div class="C_title"><%#Eval("Comment_Title")%></div>
		                                             <div class="C_name"><%#"["+ Eval("Comment_Name")+" nói:]"%></div>
		                                             <div class="C_detail"><%#Eval("Comment_Detail")%></div>
		                                             <div class="C_date"><%#Eval("Comment_Date")%></div>
		                                        </div>        		                        
		                                    </ItemTemplate>
		                                    <EmptyItemTemplate><h4>Sản phẩm  chưa có ý kiến nào</h4></EmptyItemTemplate>
		                                </asp:ListView>
								        
		                                        <div id="Addcomment">
		                                            
		                                        <div class="show">
		                                            
		                                          
		                                            <div class="message"><asp:Literal ID="lblmessage" runat="server" Text=""></asp:Literal></div>
		                                        </div>
		                                            <div class="show">
		                                                <div class="lshow">Họ Tên</div>
		                                                <div class="rshow"><asp:TextBox ID="Txtname" Width="300px" runat="server"></asp:TextBox>
                                                        <%--<asp:RequiredFieldValidator ID="RqTxtname" runat="server" ErrorMessage="(*)" ControlToValidate="Txtname"></asp:RequiredFieldValidator>--%>
                                                        </div>
		                                            </div>
		                                            <div class="show">
		                                                <div class="lshow">Email</div>
		                                                <div class="rshow"><asp:TextBox ID="Txtemail" Width="300px" runat="server"></asp:TextBox>
                                                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                            ErrorMessage="(*)" Display="Dynamic" ControlToValidate="Txtemail"></asp:RequiredFieldValidator>--%>
                                                        <%--<asp:RegularExpressionValidator ID="rqvEmail" runat="server" 
                                                            ErrorMessage="Địa chỉ Email không đúng" ControlToValidate="Txtemail" 
                                                            Display="Dynamic" 
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                                            Font-Size="12px"></asp:RegularExpressionValidator>--%></div>
		                                            </div>
		                                            <div class="show">
		                                                <div class="lshow">Tiêu Đề</div>
		                                                <div class="rshow"><asp:TextBox ID="Txttitle" Width="300px" runat="server"></asp:TextBox>
                                                        <%--<asp:RequiredFieldValidator ID="RqTxttitle" runat="server" ErrorMessage="(*)" ControlToValidate="Txttitle" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                                        </div>
		                                            </div>
		                                            <div class="show">
		                                                <div class="lshow">Nội dung</div>
		                                                <div class="rshow">
		                                                    <asp:TextBox ID="txtcontent" Rows="6" Width="430px" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                            <%--<asp:RequiredFieldValidator ID="Rqcontent" runat="server" ErrorMessage="(*)" Display="Dynamic" ControlToValidate="txtcontent" Font-Size="12px"></asp:RequiredFieldValidator>--%>
                                                        </div>
		                                            </div>
		                                             <div class="show">
		                                                <div class="lshow">Nhập Mã: </div>
		                                                <div class="cpcomment" style="float:left;width: 200px;">
		                                                    <div style="float:left; width:70px;"><asp:TextBox ID="txtcapcha" Width="60px" runat="server"></asp:TextBox></div>
		                                                    <div style="float:left; width: 85px;"><asp:Image ID="imgcapcha" runat="server" ImageUrl="http://localhost:2011/didong/PicCapcha.aspx" /></div>
	                                                    </div>
		                                            <div class="show">
		                                                <div class="lshow"></div>
                                                        <div class="rshow" style="margin:10px 0 0 100px">
                                                            <asp:Button ID="btnsubmit" UseSubmitBehavior="false" CssClass="btnsubmit" runat="server" Text=" Gửi Đi" 
                                                                onclick="btnsubmit_Click"/>
                                                            
                                                        </div>
                                                       
		                                            </div>
    		                                        
		                                        </div>    
	                                       </ContentTemplate>
	                            </asp:UpdatePanel>
		                        </div>
	</div>
							
						</div>
					</div>			
				
				</div>
    

</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceFooter" Runat="Server">
</asp:Content>

